-- 备份数据库命令
declare @app_db_name varchar(250) 
set @app_db_name=N'D:\自动化测试数据库\流程平台\接口自动化库\backup\autotest_interface_BPM_'+ convert(varchar(50),getdate(),112)+DATENAME(HOUR,GETDATE())+DATENAME(MINUTE,GETDATE())+'.bak'
BACKUP DATABASE [autotest_interface_BPM] TO  DISK = @app_db_name
WITH NOFORMAT, NOINIT,  NAME = N'autotest_interface_BPM-完整 数据库 备份', SKIP, NOREWIND, NOUNLOAD

declare @erp_db_name varchar(250) 
set @erp_db_name=N'D:\自动化测试数据库\流程平台\接口自动化库\backup\autotest_interface_BPM_ERP35_'+ convert(varchar(50),getdate(),112)+DATENAME(HOUR,GETDATE())+DATENAME(MINUTE,GETDATE())+'.bak'
BACKUP DATABASE [autotest_interface_BPM_ERP35] TO  DISK = @erp_db_name
WITH NOFORMAT, NOINIT,  NAME = N'autotest_interface_BPM_ERP35-完整 数据库 备份', SKIP, NOREWIND, NOUNLOAD
